package com.muse.patterns.strategy.duck;

import com.muse.patterns.strategy.fly.FlyNoWay;
import com.muse.patterns.strategy.quack.MuteQuack;

/**
 * @description 假鸭
 * @author: muse
 **/
public class DecoyDuck extends Duck {

    public DecoyDuck() {
        flyBehavior = new FlyNoWay(); // 不会飞
        quackBehavior = new MuteQuack(); // 假鸭，不会叫
    }

    public void display() {
        System.out.println("假鸭的外貌特征");
    }
}
